package edu.sctu.practice.class02.renzhaoxu.test18;

/**
 * Created by Administrator on 2015/11/4.
 */
public class Car extends Auto {

    boolean airConditioner;
    boolean cd;

    public Car(int tires, String color, double load, double speed,boolean airConditioner,boolean cd){

        super(tires,color,load,speed);

        this.airConditioner = airConditioner;
        this.cd = cd;
    }

    void accelerate() {

        System.out.println("加速");

    }

    void decelerate() {

        System.out.println("减速");

    }

    void stop() {

        System.out.println("停车");

    }

    void getInfo(){

        System.out.println("轮胎"+tires+"\n颜色"+color+"\n重量"+load+"\n速度"+speed+"\n是否有空调"+airConditioner+"\n是否有cd"+cd);
    }
}
